/**
 * 
 */
package org.pexx.rdm.data;

import org.pexx.rdm.listener.CombatListener;
import org.pexx.rdm.listener.DataListener;
import org.pexx.rdm.listener.SourceListener;
import org.pexx.rdm.listener.TargetListener;
import org.pexx.rdm.listener.TypeListener;


/**
 * 
 */
public interface Connector {
	
	// Listener
	
	public void addDataListener (DataListener l);
	public void removeDataListener (DataListener l);
	
	public void addCombatListener (CombatListener l);
	public void removeCombatListener (CombatListener l);

	public void addSourceListener (String source, SourceListener l);
	public void removeSourceListener (String source, SourceListener l);
	
	public void addTargetListener (String target, TargetListener l);
	public void removeTargetListener (String target, TargetListener l);

	public void addTypeListener (int type, TypeListener l);
	public void removeTypeListener (int type, TypeListener l);

	// DB
//
//	public void execUpdate (String sqlExpression, Object[] params) throws SQLException;
//	
//	public ArrayList <ArrayList<Object>> execResult (String sqlExpression, Object[] params) throws SQLException;
}
